package com.kitty.game.market.message.vo;

import com.kitty.game.market.model.MarketTransactionRecord;
import lombok.Data;

@Data
public class MarketTransactionVo {

    private String name;

    private short level;

    private int time;

    private int endTime;

    private int price;

    private short status;

    private short amount;

    private short req_level;

    private byte item_polar;

    private byte open_nimbus;

    private byte type;

    private String record_id;

    private int icon;

    public static MarketTransactionVo valueOf(MarketTransactionRecord record) {
        MarketTransactionVo vo = new MarketTransactionVo();
        vo.setName(record.getName());
        vo.setAmount(record.getAmount());
        vo.setEndTime(record.getEndTime());
        vo.setItem_polar(record.getItem_polar());
        vo.setOpen_nimbus((byte)0);
        vo.setLevel(record.getLevel());
        vo.setPrice(record.getPrice());
        vo.setRecord_id(record.getRecord_id());
        vo.setTime(record.getTime());
        vo.setIcon(0);
        return vo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public short getLevel() {
        return level;
    }

    public void setLevel(short level) {
        this.level = level;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getEndTime() {
        return endTime;
    }

    public void setEndTime(int endTime) {
        this.endTime = endTime;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public short getStatus() {
        return status;
    }

    public void setStatus(short status) {
        this.status = status;
    }

    public short getAmount() {
        return amount;
    }

    public void setAmount(short amount) {
        this.amount = amount;
    }

    public short getReq_level() {
        return req_level;
    }

    public void setReq_level(short req_level) {
        this.req_level = req_level;
    }

    public byte getItem_polar() {
        return item_polar;
    }

    public void setItem_polar(byte item_polar) {
        this.item_polar = item_polar;
    }

    public String getRecord_id() {
        return record_id;
    }

    public void setRecord_id(String record_id) {
        this.record_id = record_id;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }
}
